


import foldingPanelAdvancedList from '@/components/foldingPanelAdvancedList'
export default {
  data() {
    return {};
  },
  methods: {
    changePanel(uuid){
      if(this[`changePanel${uuid}`]){
        this[`changePanel${uuid}`]();
      }
    },
    changeHeadr(item, identifier, key) {
      item.isOpen = !item.isOpen;

      if (key) {
        if (item.type != 'default') {
          this.controlProperties[`${identifier}`].dataSourceList.forEach(
            (v) => {
              if (v.id === item.id && item.isOpen) {
                v.isOpen=item.isOpen
                
              } else {
                 v.isOpen=false
                
              }
            }
          );
        }
        this.$refs[`foldingPanel${key}`][0].clickChange();
      } else {
        if (item.type != 'default') {
          this.controlProperties[`${identifier}`].dataSourceList.forEach(
            (v) => {
              if (v.roid === item.roid && item.isOpen) {
                
                v.isOpen=item.isOpen
              } else {
                v.isOpen=false
                
              }
            }
          );
        }
        this.$refs[`foldingPanel${identifier}`].clickChange();
      }
    },
  },
  computed: {
  },
  created() {},
  components:{
    foldingPanelAdvancedList,
  }
};
